package com.hhq.service;

import com.hhq.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface Userservice {
    public List<User> getAllUser();
    public List<User> findUserByName(String loginname);
    public boolean checkAdminLogin(String loginname,String password);

    public int addUser(User user);
    public  int updateUser(User user);
    public void deleteUser(String name);
}
